/*    */ package com.hp.bon.sgw.bean;
/*    */ 
/*    */ public class FluxSumBean
/*    */ {
/*    */   private volatile int totalBytes;
/*    */   private volatile int totalRequests;
/*    */   private volatile long resetTime;
/*    */ 
/*    */   public FluxSumBean()
/*    */   {
/* 25 */     this.resetTime = System.currentTimeMillis();
/*    */   }
/*    */   public int getTotalBytes() {
/* 28 */     return this.totalBytes;
/*    */   }
/*    */ 
/*    */   public void setTotalBytes(int totalBytes)
/*    */   {
/* 33 */     this.totalBytes = totalBytes;
/*    */   }
/*    */ 
/*    */   public int getTotalRequests() {
/* 37 */     return this.totalRequests;
/*    */   }
/*    */ 
/*    */   public void setTotalRequests(int totalRequests) {
/* 41 */     this.totalRequests = totalRequests;
/*    */   }
/*    */ 
/*    */   public void increAccess(int msgLength) {
/* 45 */     this.totalRequests += 1;
/* 46 */     this.totalBytes += msgLength;
/*    */   }
/*    */ 
/*    */   public long getResetTime()
/*    */   {
/* 51 */     return this.resetTime;
/*    */   }
/*    */ 
/*    */   public void reset() {
/* 55 */     this.resetTime = System.currentTimeMillis();
/* 56 */     this.totalRequests = 0;
/* 57 */     this.totalBytes = 0;
/*    */   }
/*    */ }

/* Location:           C:\Users\think\Desktop\sgw_2.1.jar
 * Qualified Name:     com.hp.bon.sgw.bean.FluxSumBean
 * JD-Core Version:    0.6.1
 */